package com.flow.engine.controller;


import com.flow.engine.entity.FlowNodeTemplate;
import com.flow.engine.service.FlowNodeTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author ly163
 */
@RestController
@RequestMapping("/flowNodeTemplate")
public class FlowNodeTemplateController {

    @Autowired
    private FlowNodeTemplateService service;



    @GetMapping("/{flowTemplateId}")
    public List<FlowNodeTemplate> queryFlowById(@PathVariable Long flowTemplateId) {
        return service.queryFlowById(flowTemplateId);
    }
}
